package cn.mujiankeji.mbrowser.界面.标签页.阅读页面

import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import cn.mujiankeji.mbrowser.功能.浏览框.浏览框状态
import cn.mujiankeji.mbrowser.功能.浏览框.浏览框视图


@Composable
fun 阅读页面实现(state : 阅读页面状态){
    state.coroutine = rememberCoroutineScope()
    DisposableEffect(Unit) {
        onDispose {
            state.coroutine = null
        }
    }

    LaunchedEffect(Unit) {
        state.浏览框.状态
    }
    // 源码内容
    var 源码内容 by remember { mutableStateOf("") }

    浏览框视图(state.浏览框)
}